/**
 * 
 */
package com.hollycrm.hollysqm.analyzer;

import java.util.List;

import org.ansj.library.UserDefineLibrary;
import org.ansj.recognition.NatureRecognition;
import org.ansj.splitWord.analysis.ToAnalysis;


/**
 * @author admin
 *
 */
public class Main {

	public static void main(String[] args) {
		test3();				
	}
	
	//测试自定义词
	public static void test3(){					
		UserDefineLibrary.insertWord("开通",  "userDefine" , 1000) ;
		UserDefineLibrary.insertWord("国际业务",  "userDefine" , 1000) ;
		UserDefineLibrary.insertWord("换四g",  "userDefine" , 1000) ;
		UserDefineLibrary.insertWord("转四g",  "userDefine" , 1000) ;
		UserDefineLibrary.insertWord("升级四g",  "userDefine" , 1000) ;
		UserDefineLibrary.insertWord("升四g",  "userDefine" , 1000) ;
		UserDefineLibrary.insertWord("四g",  "userDefine" , 1000) ;
		UserDefineLibrary.insertWord("套餐",  "userDefine" , 1000) ;
		
        List terms = ToAnalysis.parse("请我开通国际业务，我这个套餐要换四g号") ;
        new NatureRecognition(terms).recognition();
        System.out.println("增加新词例子:"+terms);
	}
}
